#include<iostream>
#include<string>
using namespace std;

int main()
{
	string s1,s2;
	while(cin>>s1>>s2)
	{
		if(s1.find(s2)!=string::npos) cout<<"isSubstring"<<endl;
		else cout<<"notSubstring"<<endl;
	}
	return 0;
}
